<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>联系人列表</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<%@ include file="/commons/manage/content.jspf"%>
		<script type="text/javascript" src="contactsList.js"></script>
	</head>
	<body>
		<form name="contactsList" action="contactsList.shtml" method="post">
			<input type="hidden" id="event" name="event" />
			<div class="contBtnDiv">
				<span class="contBtn contBtnNew" id="btnNew">新 增</span>
				<span class="contBtn contBtnDel" id="btnDel">删 除</span>
			</div>
			<ec:table items="contactsList" var="contacts" form="contactsList"
				theme="eXtManage" view="manage" action="contactsList.shtml">
				<ec:row>
					<c:url var="editUrl" value="contactsEdit.shtml?id=${contacts.id}" />
					<ec:column property="id" sortable="false"
						headerStyle="text-align: center;"
						style="text-align: center; width: 50px;"
						title="<input type='checkbox' title='全选' onclick='javascript: selectAll(\"selectedIds\");' />">
						<input type="checkbox" name="selectedIds" value="${contacts.id}" />
					</ec:column>
					<ec:column property="title" title="名称" alias="TITLE_">
						<a href="${editUrl}"><c:out value="${contacts.title}" /> </a>
					</ec:column>
					<ec:column property="province" title="省份" alias="PROVINCE_">
						<a href="${editUrl}"><c:out value="${provinceMap[contacts.province]}" /> </a>
					</ec:column>
					<ec:column property="contactPerson" title="联系人" alias="NAME_"
						style="width: 100px;">
						<a href="${editUrl}"><c:out value="${contacts.contactPerson}" />
						</a>
					</ec:column>
					<ec:column property="telephone" title="联系电话" alias="TEL_"
						style="width: 180px;">
						<a href="${editUrl}"><c:out value="${contacts.telephone}" />
						</a>
					</ec:column>
					<ec:column property="address" title="地址" alias="ADD_">
						<a href="${editUrl}"><c:out value="${contacts.address}" /> </a>
					</ec:column>
				</ec:row>
			</ec:table>
		</form>
	</body>
</html>